package com.jxgc.file.oi;

public class arrayText1 {
    public static void main(String[] args) {
        //目标：完成对数组元素的求和
        //1.定义数组存储5个销售额
        int []  money = {16,26,36,6,100};
        //2.遍历这个数组中的每个数据

        int sum = 0;

        for (int i = 0; i < money.length; i++) {
           sum += money[i];
        }
        System.out.println("员工的销售总额：" + sum);
    }
}
